package com.youlu.campus.entity.douyin;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.mapping.Document;

@Getter
@Setter
@Document(collection = "dou_yin_user_watch_video")
@CompoundIndexes({
        @CompoundIndex(name = "userId_1_activityId_-1",unique = true,def = "{'userId':-1,'activityId':-1")
})
public class DouYinUserWatchVideo extends EntityBase {

    /**
     * 活动ID
     */
    private String activityId;

    private String userId;

    private String openId;

    private String unionId;
}
